# -*- coding: utf-8 -*-
"""
@Time ： 2022-10-10 9:18
@Auth ： Mr.Z
@Company ：test
@Function ：请输入模块功能描述
"""
from Keywords.inter_keys import Inter

inter = Inter()

# 设置系统地址
inter.set_url('https://pos3-gateway.qxfoodom.com')

# 运营APP登陆
inter.post_json('/auth/system/username-login',
                '{"password":"aA.11111","name":"15678300490","channelId":"15"}')
# 断言登陆成功
inter.assert_equals('code', '0000')

# 提取token,进行参数化
inter.save_json("$.data.accessToken", "newtoken")

# 添加authorization到请求头
inter.add_header('authorization', '{newtoken}')

# 获取门店信息
inter.post_json("/maintain/store/list-user-store","{}")




